package com.itheima.demo;

public class SystemDemo {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();



        int[] arr1 = {1,2,3,4,5};
        int[] arr2 = new int[10];
        System.arraycopy(arr1,arr1.length-2,arr2,arr2.length-2,2);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }



        long end = System.currentTimeMillis();
        System.out.println("用时："+(end-start));
    }
}
